libxl: allow guest to write "control/shutdown" xenstore node.
authorIan Campbell <ian.campbell@citrix.com>
Fri, 11 Feb 2011 17:56:24 +0000 (17:56 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 11 Feb 2011 17:56:24 +0000 (17:56 +0000)
commit9d60f0d3de9ac3a800b2ba0b0aaec8715a7a869e
treea2b27ac01a241579f4e0689077a6c2e2cec7fc21
parent33c82cfa4845bc10f9d7a78d7f282a775ad0d76b
libxl: allow guest to write "control/shutdown" xenstore node.

The PV shutdown/reboot/suspend protocol requires that the guest
acknowledge a request by clearing the node therefore it is necessary
to allow the guest to write to the node.

Currently libxl is quite relaxed about this protocol and doesn't
reeally seem to mind that the guest is unable to write the node to
perform the acknowledgement. However in a followup patch libxl needs
to be able to detect that a guest has acknowledged a suspend request.

A side effect of this change is that an empty "control/shutdown" node
is created upon domain creation instead of only being created when a
shutdown/reboot/suspend is requested. This should not (and does not
in my tests) have any negative impact on the guest.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_create.c